package com.ruoyi.supplier.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 品项类别对象 gys_main_category
 * 
 * @author ruoyi
 * @date 2024-07-15
 */
public class GysMainCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private Long id;

    /** 品类编码 */
    @Excel(name = "品类编码")
    private String mainCode;

    /** 品类名称 */
    @Excel(name = "品类名称")
    private String mainName;

    /** 所属上级ID */
    @Excel(name = "所属上级ID")
    private Long mainCodeId;

    /** 所属供应商类别ID */
    @Excel(name = "所属供应商类别ID")
    private Long supplierTypeId;

    /** 状态 */
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMainCode(String mainCode) 
    {
        this.mainCode = mainCode;
    }

    public String getMainCode() 
    {
        return mainCode;
    }
    public void setMainName(String mainName) 
    {
        this.mainName = mainName;
    }

    public String getMainName() 
    {
        return mainName;
    }
    public void setMainCodeId(Long mainCodeId) 
    {
        this.mainCodeId = mainCodeId;
    }

    public Long getMainCodeId() 
    {
        return mainCodeId;
    }
    public void setSupplierTypeId(Long supplierTypeId) 
    {
        this.supplierTypeId = supplierTypeId;
    }

    public Long getSupplierTypeId() 
    {
        return supplierTypeId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainCode", getMainCode())
            .append("mainName", getMainName())
            .append("mainCodeId", getMainCodeId())
            .append("supplierTypeId", getSupplierTypeId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
